
<!-- saved from url=(0043)http://www.hao123.com/haoserver/htmtojs.htm -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <style>
        body {
            margin: 0
        }
        textarea {
            width: 760;
            height: 180;
            font-size: 9pt;
            font-family: Courier New;
            color: #666666
        }
        button{
            cursor: pointer;
        }
    </style>
    <title>js转换成html</title>
    <style type="text/css">
        <!-- td,
        body {
            font-size: 12px
        }

        a:link {
            color: #000000;
            text-decoration: none
        }

        a:visited {
            COLOR: #000000;
            TEXT-DECORATION: none
        }

        a:active {
            color: green;
            text-decoration: none
        }

        a:hover {
            color: red;
            text-decoration: underline
        }

        body {
            margin-left: 0px;
            margin-top: 0px;
            margin-right: 0px;
            background-color: #fcfff7;
        }

        -->
    </style>
    <!--<base target="_blank">--><base href="." target="_blank">
    <script src="https://cdn.bootcss.com/jquery/1.11.0/jquery.min.js"></script>
    <script>
    	function rechange() {
    		$.ajax({
                type: "post",
                url: '/js2html',
                data: { "js": $("#oResult").val()},
                dataType: "text",
                success: function(data){
                	$("#Re").val(data);
                }
            });
    	}
    
    </script>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <div align="center">
        <p>
            <font color="#FF0000">JS转HTML</font>&nbsp;&nbsp;
            <a href="html2js.html" target="_self">HTML转JS</a>
        </p>
        <p>
            请将JS源代码拷贝到下面表单中:
            <br>
            <textarea id="oResult" onpropertychange="rechange()" cols="99" rows="12"></textarea>
            <br>
            <br>
            <button id="btn-trans" onclick="rechange();">转换</button>
            <br>
            <br> 下面表单中是相应的HTML代码:
            <br>
            <textarea id="Re" title="" cols="99" rows="30"></textarea>
            
        </p>
    </div>
    
</body></html>